===========================================================================
Data and codes to replicate the results discussed in online appendix F.3 of 
"Marital matching, economies of scale and intrahousehold allocations" 
by Laurens Cherchye, Bram De Rock, Khushboo Surana and Frederic Vermeulen 
===========================================================================

* Step 1: Identification
* Identification can be obtained by using matlab code 'main.m' which uses the dataset 'psid_cleaned_onlycouples' 
* This script uses two matlab function.
* 1)'get_divorce_costs.m' which computes the minimum divorce costs needed to rationalize the data. 
* 2)'get_scale.m' uses the outputs of 'get_divorce_costs.m' and gives the bounds on economies of scale and individual RICEBS. 
* The results are stored in 'psid_results_f3_onlycouples'

* Step 2: Analysis
* Tables 32-33 can be produced using the do-file 'analysis_results_f3_onlycouples'. 
* It uses the stata dataset file 'psid_results_f3_onlycouples' which has the results from step 1. 